package cn.com.jslh.boarpro.main.model;

import android.content.Context;

import cn.com.jslh.boarpro.util.WebService;

/**
 * Created by lenovo on 2018/3/26.
 */

public class WarnResultModelImpl {
    private Context context;

    public WarnResultModelImpl(Context context) {
        this.context = context;
    }

    /**
     *
     * @param netSuccessListener
     * @param lineID 生产线
     * @param itemId 行id
     * @param page 页码
     */
    public void getWarnResultData(final WebService.NetSuccessListener netSuccessListener, WebService.NetFaildListener netFaildListener,String lineID,String itemId,int page){
        new WebService.Builder(context,"WarnDetail","WSPigWarnFacade")
                .addProperty("lineID",lineID)
                .addProperty("itemID",itemId)
                .addProperty("pageNum",page)
                .success(netSuccessListener)
                .faild(netFaildListener)
                .post();
    }
}
